filechooserwidget: Pick reasonable default sidebar width
authorTimm Bäder <tbaeder@redhat.com>
Mon, 29 Apr 2019 06:40:58 +0000 (08:40 +0200)
committerTimm Bäder <mail@baedert.org>
Tue, 30 Apr 2019 03:36:20 +0000 (05:36 +0200)
commit1d81a58cf145a9bc413ecff5086ee2df3413a4e3
tree7f082edab634be1d9a30e9917046f9585db1b7e4
parent09cec2e6a124c34b3cdb7301d8d89e7b1991563a
filechooserwidget: Pick reasonable default sidebar width

The old default of 148px doesn't work everywhere. Instead, pick a
default value of -1 and measure() the sidebar widget in the
filechooserwidget in that case. Other values >= 0 are still handled as
before.
gtk/gtkfilechooserwidget.c
gtk/org.gtk.gtk4.Settings.FileChooser.gschema.xml